package com.ishansong.ticket.service;

import com.ishansong.ticket.exception.ServiceDaoException;
import com.ishansong.ticket.exception.ServiceException;
import com.ishansong.ticket.model.TicketUser;

import java.util.List;

public interface TicketUserService {



	/**
	 * @param id
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	TicketUser getTicketUser(Long id) throws ServiceDaoException, ServiceException;

	/**
	 * @param ticketUser
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	Long saveTicketUser(TicketUser ticketUser) throws ServiceDaoException, ServiceException;

	/**
	 * @param ticketUser
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	void updateTicketUser(TicketUser ticketUser) throws ServiceDaoException, ServiceException;

    /**
     * @param id
     * @return
     * @throws ServiceDaoException
     * @throws ServiceException
     */
	Boolean deleteTicketUser(Long id) throws ServiceDaoException, ServiceException;

	/**
	 * 根据手机号获取用户信息
	 * @param mobile 手机
	 * @return
	 * @throws ServiceDaoException
	 * @throws ServiceException
	 */
	TicketUser queryTicketUserByMobile(String mobile) throws ServiceDaoException, ServiceException;
}
